﻿<%@ Page Title="" Language="C#" MasterPageFile="~/IdeaNMR/IdeaNMR.master"
    AutoEventWireup="true" CodeBehind="DesignSample.aspx.cs"
    ValidateRequest="false" Inherits="IdeaNMR.Web.DesignSample" %>

<%@ MasterType TypeName="IdeaNMR.Web.IdeaNMR_Master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
    TagPrefix="act" %>
<%@ Register Src="~/IdeaNMR/VersionList.ascx" TagName="VersionsList"
    TagPrefix="nmr" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head"
    runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphMaster"
    runat="server">
    <asp:ScriptManagerProxy runat="server" />
    <asp:Panel runat="server" ID="panTwoColumns" CssClass="DesignHardObject_ASPX Main">
        <asp:Panel runat="server" ID="panRight" CssClass="DesignHardObject_ASPX ControlsContainer">
            <asp:UpdatePanel runat="server" ID="upButtons">
                <ContentTemplate>
                    <asp:Panel runat="server" ID="panButtons" CssClass="DesignHardObject_ASPX Control Buttons">
                        <div>
                            <asp:Button runat="server" ID="butSave" Text="Submit"
                                OnClick="butSave_Click" CausesValidation="false"
                                CssClass="DesignHardObject_ASPX Control Submit" />
                            <div class="DesignHardObject_ASPX SaveDraft">
                                <asp:Button runat="server" ID="butDraft" Enabled="True"
                                    Text="Save Draft" CssClass="DesignHardObject_ASPX Buttons SaveDraft"
                                    OnClick="butDraft_Click" CausesValidation="true" />
                                <br />
                                <asp:Label runat="server" ID="lblSysMsg" Text="Not Implemented Yet"
                                    CssClass="DesignHardObject_ASPX SaveDraft" Visible="false" />
                            </div>
                            <asp:ValidationSummary runat="server" HeaderText="Validation issues present"
                                DisplayMode="SingleParagraph" CssClass="DesignHardObject_ASPX ValidationSummary" />
                        </div>
                        <asp:Panel runat="server" ID="panSave" CssClass="DesignHardObject_ASPX Saving"
                            Visible="false">
                            <div class="DesignHardObject_ASPX SaveType">
                                <asp:RadioButton runat="server" ID="rbNew" Text="New Sample"
                                    OnCheckedChanged="rbSaveOption_CheckChanged" CssClass="BadRadioButton"
                                    AutoPostBack="true" GroupName="SaveOption" />
                            </div>
                            <div class="DesignHardObject_ASPX SaveType">
                                <asp:RadioButton runat="server" ID="rbVersion" Text="New Version"
                                    OnCheckedChanged="rbSaveOption_CheckChanged" CssClass="BadRadioButton"
                                    AutoPostBack="true" GroupName="SaveOption" />
                                <asp:TextBox runat="server" ID="tbVersionInfo" CssClass="DesignHardObject_ASPX UserInputField VersionInfo"
                                    TextMode="MultiLine" Rows="2" Enabled="false" />
                                <div class="DesignHardObject_ASPX Validator">
                                    <asp:RegularExpressionValidator runat="server" ID="revVersionInfo"
                                        ControlToValidate="tbVersionInfo" Display="Dynamic" />
                                </div>
                            </div>
                            <asp:CheckBox runat="server" ID="chkPublic" Text="Make It Public"
                                CssClass="DesignHardObject_ASPX BadCheckBox" />
                            <div class="DesignHardObject_ASPX Validator">
                                <asp:CustomValidator runat="server" Text="Please choose save option."
                                    OnServerValidate="SaveOption_Validate" Display="Dynamic" />
                            </div>
                            <span>
                                <asp:Button runat="server" Text="Ok" CssClass="DesignHardObject_ASPX BigButton OkButton"
                                    CausesValidation="true" ID="butOk" OnClick="butOk_Click" />
                                <asp:LinkButton runat="server" ID="lbCancel" Text="Cancel"
                                    CssClass="DesignHardObject_ASPX CancelButton" OnClick="butCancel_Click" />
                            </span>
                        </asp:Panel>
                    </asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>
            <asp:UpdatePanel runat="server" ID="upVersions">
                <ContentTemplate>
                    <asp:Panel runat="server" ID="panVersions" CssClass="DesignHardObject_ASPX Control Versions">
                        <span class="DesignHardObject_ASPX ControlTitle">Versions</span>
                        <nmr:VersionsList runat="server" ID="Versions" CssClass="DesignHardObject_ASPX" />
                    </asp:Panel>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="butOk" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
        </asp:Panel>
        <asp:Panel runat="server" ID="panLeft" CssClass="DesignHardObject_ASPX Fields">
            <asp:UpdatePanel ID="MainForm" runat="server">
                <ContentTemplate>
                    <div class="DesignHardObject_ASPX LabelInputValidator">
                        <span class="DesignHardObject_ASPX Fields NameLabel">Name</span>
                        <asp:TextBox ID="tbName" runat="server" CssClass="DesignHardObject_ASPX Fields NameText UserInputField" />
                        <div class="DesignHardObject_ASPX Validator">
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="tbName"
                                Display="Dynamic" ID="rfvName" />
                            <asp:RegularExpressionValidator ID="revName" runat="server"
                                ControlToValidate="tbName" Display="Dynamic">
                            </asp:RegularExpressionValidator>
                        </div>
                    </div>
                    <div class="DesignHardObject_ASPX LabelInputValidator">
                        <span class="DesignHardObject_ASPX Fields BufferLabel">
                            Buffer</span>
                        <asp:TextBox ID="tbBuffer" runat="server" CssClass="DesignHardObject_ASPX Fields BufferText UserInputField" />
                        <div class="DesignHardObject_ASPX Validator">
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="tbBuffer"
                                Display="Dynamic" ID="rfvBuffer" />
                            <asp:RegularExpressionValidator ID="revBuffer" runat="server"
                                ControlToValidate="tbBuffer" Display="Dynamic">
                            </asp:RegularExpressionValidator>
                        </div>
                    </div>
                    <div class="DesignHardObject_ASPX LabelInputValidator">
                        <span class="DesignHardObject_ASPX Fields LabelingLabel">
                            Labeling</span>
                        <asp:TextBox ID="tbLabeling" runat="server" CssClass="DesignHardObject_ASPX Fields BufferText UserInputField" />
                        <div class="DesignHardObject_ASPX Validator">
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="tbLabeling"
                                Display="Dynamic" ID="rfvLabeling" />
                            <asp:RegularExpressionValidator ID="revLabeling" runat="server"
                                ControlToValidate="tbLabeling" Display="Dynamic">
                            </asp:RegularExpressionValidator>
                        </div>
                    </div>
                    <div class="DesignHardObject_ASPX LabelInputValidator">
                        <span class="DesignHardObject_ASPX Fields LocationLabel">
                            Location</span>
                        <asp:TextBox ID="tbLocation" runat="server" CssClass="DesignHardObject_ASPX Fields BufferText UserInputField" />
                        <div class="DesignHardObject_ASPX Validator">
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="tbLocation"
                                Display="Dynamic" ID="rfvLocation" />
                            <asp:RegularExpressionValidator ID="revLocation" runat="server"
                                ControlToValidate="tbLocation" Display="Dynamic">
                            </asp:RegularExpressionValidator>
                        </div>
                    </div>
                    <div class="DesignHardObject_ASPX LabelInputValidator">
                        <span class="DesignHardObject_ASPX Fields RemarkLabel">
                            Remark</span>
                        <asp:TextBox ID="tbMemo" CssClass="DesignHardObject_ASPX Fields RemarkText UserInputField"
                            runat="server" MaxLength="2000" TextMode="MultiLine" />
                        <div class="DesignHardObject_ASPX Validator">
                            <asp:RequiredFieldValidator ID="rfvMemo" runat="server"
                                ControlToValidate="tbMemo" Display="Dynamic" />
                            <asp:RegularExpressionValidator ID="revMemo" runat="server"
                                ControlToValidate="tbMemo" Display="Dynamic" />
                        </div>
                    </div>
                    <div class="DesignHardObject_ASPX LabelInputValidator">
                        <span class="DesignHardObject_ASPX Fields ContactPerson">
                            Contact Person</span>
                        <asp:TextBox ID="tbContactPerson" runat="server" CssClass="DesignHardObject_ASPX Fields NameText UserInputField" />
                        <div class="DesignHardObject_ASPX Validator">
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="tbContactPerson"
                                Display="Dynamic" ID="rfvContactPerson" />
                            <asp:RegularExpressionValidator ID="revContactPerson"
                                runat="server" ControlToValidate="tbContactPerson"
                                Display="Dynamic">
                            </asp:RegularExpressionValidator>
                        </div>
                    </div>
                    <div class="DesignHardObject_ASPX LabelInputValidator">
                        <span class="DesignHardObject_ASPX Fields ContactPerson">
                            Contact Email</span>
                        <asp:TextBox ID="tbContactMail" runat="server" CssClass="DesignHardObject_ASPX Fields NameText UserInputField" />
                        <div class="DesignHardObject_ASPX Validator">
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="tbContactMail"
                                Display="Dynamic" ID="rfvContactMail" />
                            <asp:RegularExpressionValidator ID="revContactMail"
                                runat="server" ControlToValidate="tbContactMail"
                                Display="Dynamic">
                            </asp:RegularExpressionValidator>
                        </div>
                    </div>
                    <div class="DesignHardObject_ASPX LabelInputValidator">
                        <act:TabContainer runat="server" ID="tcComponents"
                            ActiveTabIndex="0">
                            <act:TabPanel runat="server" HeaderText="Script">
                                <ContentTemplate>
                                    <asp:TextBox ID="tbScript" runat="server" MaxLength="50000"
                                        CssClass="DesignHardObject_ASPX Fields ScriptText UserInputField"
                                        TextMode="MultiLine" />
                                    <div class="DesignHardObject_ASPX Validator">
                                        <asp:RegularExpressionValidator ID="revScript" runat="server"
                                            ControlToValidate="tbScript" Display="Dynamic" />
                                    </div>
                                </ContentTemplate>
                                <HeaderTemplate>
                                    <asp:Label runat="server" Text="Script" CssClass="DesignHardObject_ASPX Fields ScriptLabel" />
                                </HeaderTemplate>
                            </act:TabPanel>
                            <act:TabPanel ID="tpOutput" runat="server" HeaderText="Output">
                                <ContentTemplate>
                                    <asp:Panel ID="panOutput" runat="server">
                                        <asp:Literal runat="server" ID="litOutput"></asp:Literal>
                                    </asp:Panel>
                                </ContentTemplate>
                                <HeaderTemplate>
                                    <asp:Label runat="server" Text="Output" ForeColor="Black"></asp:Label>
                                </HeaderTemplate>
                            </act:TabPanel>
                        </act:TabContainer>
                    </div>
                </ContentTemplate>
                <Triggers>
                </Triggers>
            </asp:UpdatePanel>
        </asp:Panel>
        <div style="clear: both">
        </div>
    </asp:Panel>
    <asp:Label runat="server" ID="lblTest" />
</asp:Content>
